<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../plugins/vue.min.js"></script>
</head>
<body>
  
    <div class="box">
      {{myContent}}

      
      <!-- 只有这样才会解析标签,{{}} 不会解析标签,是什么就显示什么 -->
      <div v-html="myContent"></div>
    </div>
    <script>
        let mm = new Vue({
            el:'.box',
            data:{
                myContent: '<h2>我的</h2>'
            }
        })
    </script>
</body>
</html>